package keyWords.myStatic;

class A2{}

class B2 extends A2{}

class C extends A2{}

class D extends B2{}

public class ForTest {



//      应该必须赋初值才对?
        static int arr[] = new int[5];

        public static void main(String a[]){
            int arr2[] = new int[5];
            System.out.println(arr[0]);
            System.out.println(arr2[0]);

            A2 obj = new D();

            System.out.println(obj instanceof B2);  //true

            //D继承的是B2，C和B2没有关系
            System.out.println(obj instanceof C);   //false

            System.out.println(obj instanceof D);   //true

            System.out.println(obj instanceof A2);  //true

        }


}
